package com.example.teesystem.entity.vo.advancedTrain;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import com.example.teesystem.common.valid.ValidIds;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AdvancedTrainUpdateVo {
    @ValidId(message = ValidErrorMessage.ADVANCED_TRAINING_ID_VALID_FAIL)
    private Integer id;
    
    @ValidIds(message = ValidErrorMessage.ISSUE_ID_VALID_FAIL)
    private List<Integer> issueIds;

    @NotNull(message = "message不能为空")
    private String message;

    @NotNull(message = "isOpen不能为空")
    private Integer isOpen;
}
